package startup

import (
	"shop-bean/model"
	"shop-common/library/env"
	"shop-common/library/variables"
)

func Migrate() error {
	var err error
	if variables.GormDB() != nil && env.IsDevMode() {
		err = variables.GormDB().AutoMigrate(&model.UserAddr{})
	}

	return err
}
